﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace PersonalWebsite.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class init8 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_TgaGame",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 127, DateTimeKind.Local).AddTicks(759),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 19, 32, 13, 660, DateTimeKind.Local).AddTicks(7175),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_Show",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 126, DateTimeKind.Local).AddTicks(9494),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 19, 32, 13, 660, DateTimeKind.Local).AddTicks(5701),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_ProExperience",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 125, DateTimeKind.Local).AddTicks(7943),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 19, 32, 13, 659, DateTimeKind.Local).AddTicks(1479),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_HotMovie",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 126, DateTimeKind.Local).AddTicks(8070),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 19, 32, 13, 660, DateTimeKind.Local).AddTicks(4236),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_GameVideo",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 126, DateTimeKind.Local).AddTicks(6757),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 19, 32, 13, 660, DateTimeKind.Local).AddTicks(2811),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_Book",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 126, DateTimeKind.Local).AddTicks(5210),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 19, 32, 13, 660, DateTimeKind.Local).AddTicks(1069),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_Ability",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 125, DateTimeKind.Local).AddTicks(6417),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 19, 32, 13, 658, DateTimeKind.Local).AddTicks(9884),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "Time",
                table: "WP_Post",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 127, DateTimeKind.Local).AddTicks(1597),
                comment: "发布时间",
                oldClrType: typeof(string),
                oldType: "varchar(255)",
                oldNullable: true,
                oldDefaultValue: "03/12/2025 19:32:13",
                oldComment: "发布时间")
                .OldAnnotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WP_Post",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 127, DateTimeKind.Local).AddTicks(2759),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 19, 32, 13, 660, DateTimeKind.Local).AddTicks(9746),
                oldComment: "创建时间");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_TgaGame",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 19, 32, 13, 660, DateTimeKind.Local).AddTicks(7175),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 127, DateTimeKind.Local).AddTicks(759),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_Show",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 19, 32, 13, 660, DateTimeKind.Local).AddTicks(5701),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 126, DateTimeKind.Local).AddTicks(9494),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_ProExperience",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 19, 32, 13, 659, DateTimeKind.Local).AddTicks(1479),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 125, DateTimeKind.Local).AddTicks(7943),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_HotMovie",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 19, 32, 13, 660, DateTimeKind.Local).AddTicks(4236),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 126, DateTimeKind.Local).AddTicks(8070),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_GameVideo",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 19, 32, 13, 660, DateTimeKind.Local).AddTicks(2811),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 126, DateTimeKind.Local).AddTicks(6757),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_Book",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 19, 32, 13, 660, DateTimeKind.Local).AddTicks(1069),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 126, DateTimeKind.Local).AddTicks(5210),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_Ability",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 19, 32, 13, 658, DateTimeKind.Local).AddTicks(9884),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 125, DateTimeKind.Local).AddTicks(6417),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<string>(
                name: "Time",
                table: "WP_Post",
                type: "varchar(255)",
                nullable: true,
                defaultValue: "03/12/2025 19:32:13",
                comment: "发布时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 127, DateTimeKind.Local).AddTicks(1597),
                oldComment: "发布时间")
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WP_Post",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 19, 32, 13, 660, DateTimeKind.Local).AddTicks(9746),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 127, DateTimeKind.Local).AddTicks(2759),
                oldComment: "创建时间");
        }
    }
}
